package com.fortune.dto.in.mChannelDiscount;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;

import io.swagger.annotations.ApiModelProperty;

public class MChannelDiscountEditDto {
	@NotBlank(message="优惠政策ID不能为空")
	@ApiModelProperty(required=true, example="优惠政策ID")
	private String id;
	@NotBlank(message="优惠政策不能为空")
	@ApiModelProperty(required=true, example="优惠政策名称")
	private String name;
	@NotBlank(message="商品ID不能为空")
	@ApiModelProperty(required=true, example="商品ID")
	private String mpid;
	@NotBlank(message="起始日期不能为空")
	@ApiModelProperty(required=true, example="起始日期")
	private String startTime;
	@NotBlank(message="截止日期不能为空")
	@ApiModelProperty(required=true, example="截止日期")
	private String endTime;
	@NotNull(message="满数量不能为空")
	@ApiModelProperty(required=true, example="满数量")
	private int achieveNum;
	@NotNull(message="赠数量不能为空")
	@ApiModelProperty(required=true, example="赠数量")
	private int giftNum;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getMpid() {
		return mpid;
	}
	public void setMpid(String mpid) {
		this.mpid = mpid;
	}
	public String getStartTime() {
		return startTime;
	}
	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}
	public String getEndTime() {
		return endTime;
	}
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	public int getAchieveNum() {
		return achieveNum;
	}
	public void setAchieveNum(int achieveNum) {
		this.achieveNum = achieveNum;
	}
	public int getGiftNum() {
		return giftNum;
	}
	public void setGiftNum(int giftNum) {
		this.giftNum = giftNum;
	}
	@Override
	public String toString() {
		return "MChannelDiscountEditDto [id=" + id + ", name=" + name + ", mpid=" + mpid + ", startTime=" + startTime
				+ ", endTime=" + endTime + ", achieveNum=" + achieveNum + ", giftNum=" + giftNum + "]";
	}
}
